import request from '@/utils/request'

//订单列表
export const getOrderListApi = (state) => {
	return request({
		url: '/order/list',
		header: {
			token: uni.getStorageSync('token')
		},
		data: {
			state: state
		}
	})
}

//订单详情
export const getOrderDetailApi = (params) => {
	return request({
		url: '/order/detail',
		data: {
			oid: params.oid
		},
		header: {
			token: uni.getStorageSync('token')
		}
	})
}